package com.hbnu.pojo;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Scanner;

public class User {
    private String name;
    private String password;
    private int disabled;
    private String phone;
    private Integer segment;

    public User(String name, String password, int disabled, String phone, Integer segment) {
        this.name = name;
        this.password = password;
        this.disabled = disabled;
        this.phone = phone;
        this.segment = segment;
    }

    public Integer getSegment() {
        return segment;
    }

    public void setSegment(Integer segment) {
        this.segment = segment;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", disabled=" + disabled +
                ", phone='" + phone + '\'' +
                ", segment=" + segment +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getDisabled() {
        return disabled;
    }

    public void setDisabled(int disabled) {
        this.disabled = disabled;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public User() {
    }


}
